Embedding Audio in HTML
In HTML, the <audio> element is used to embed audio files directly into a web page. It allows users to play sounds like music, voice recordings, or effects without requiring external plugins.
The <audio> tag supports attributes like controls, autoplay, loop, and muted.
Common formats supported are MP3, OGG, and WAV.
The <source> tag inside <audio> allows providing multiple file formats for better browser compatibility.
If the browser doesn’t support the <audio> element, fallback text can be displayed.
In short: The <audio> element lets you embed and control sound playback directly in your web pages.